//
//  UserOfDataHotTopic.m
//  __PRODUCTNAME__
//
//  Created by Gollum on 16/09/20
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "UserOfDataHotTopic.h"
#import "BaseOfUserDataHotTopic.h"
#import "TeacherOfUserDataHotTopic.h"
@implementation UserOfDataHotTopic
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"base"]) {
        _base = [BaseOfUserDataHotTopic modelDic:value];
    }
    if ([key isEqualToString:@"teacher"]) {
        _teacher = [TeacherOfUserDataHotTopic modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
